<template name="UserInfo">
	{{#if hasUserInfo user}}
	<div class="list-block user-profile">
		<ul class = "items-list">
			<li class="list-item">
				<div class="item-content">
					<div class="item-media">
						<img class="avatar" src="{{avatar user.head_image}}" width="60" height="60">
					</div>
					<div class="item-inner" style="margin-left: 16px !important;">
						<div class="detail">
							<div class="name title-font">{{username user}}</div>
						</div>
					</div>
				</div>
			</li>
		</ul>
	</div>
	{{/if}}
	<div class="list-block func-box" >
		<ul>
			<li class="item-content sex"  >
				<a href="#" class ="open-popup" data-popup=".popup-sex"></a>
				<div class="item-media">
					<svg class="icon" aria-hidden="true">
						<use xlink:href="#icon-xingbie"></use>
					</svg>
				</div>
				<div class="item-inner ">
					<div class="item-title label">性别</div>
					<div class=" align-right user-info-content">
						{{sex user.sex}}
					</div>
				</div>
			</li>
			<li class="item-content city" >
				<a href="#" class = "open-popup" data-popup = ".area-selector"></a>
				<div class="item-media">
					<svg class="icon" aria-hidden="true">
					  <use xlink:href="#icon-chengshi"></use>
					</svg>
				</div>
				<div class="item-inner ">
					<div class="item-title label">城市</div>
					<div class=" align-right user-info-content">
						{{location user}}
					</div>
				</div>
			</li>
			<li class="item-content university" >
				<a href="#" class ="open-popup" data-popup=".popup-university"></a>
				<div class="item-media">
					<svg class="icon" aria-hidden="true">
						<use xlink:href="#icon-xuexiao"></use>
					</svg>
				</div>
				<div class="item-inner ">
					<div class="item-title label">学校</div>
					<div class=" align-right user-info-content">
						{{#if user.university_name}}
								{{user.university_name}}
						{{else}}
								请选择学校
						{{/if}}
					</div>
				</div>
			</li>
			<li class="item-content college" >
				<a href="#" class ="open-popup" data-popup=".popup-college"></a>
				<div class="item-media">
					<svg class="icon" aria-hidden="true">
						<use xlink:href="#icon-xueyuan"></use>
					</svg>
				</div>
				<div class="item-inner ">
					<div class="item-title label">院系</div>
					<div class=" align-right user-info-content">
						{{#if user.college_name}}
								{{user.college_name}}
						{{else}}
								请选择院系
						{{/if}}
					</div>
				</div>
			</li>
			<li class="item-content grade" >
				<a href="#" class ="open-popup" data-popup=".popup-grade"></a>
				<div class="item-media">
					<svg class="icon" aria-hidden="true">
						<use xlink:href="#icon-yi"></use>
					</svg>
				</div>
				<div class="item-inner ">
					<div class="item-title label">年级</div>
					<div class=" align-right user-info-content">
						{{#if user.grade}}
								{{user.grade}}
						{{else}}
								请选择年级
						{{/if}}
					</div>
				</div>
			</li>
			<li class="item-content major" >
				<a href="#" class ="open-popup" data-popup=".popup-major"></a>
				<div class="item-media">
					<svg class="icon" aria-hidden="true">
						<use xlink:href="#icon-zhuanye"></use>
					</svg>
				</div>
				<div class="item-inner ">
					<div class="item-title label">专业</div>
					<div class=" align-right user-info-content">
						{{#if user.major_name}}
								{{user.major_name}}
						{{else}}
								请选择专业
						{{/if}}
					</div>
				</div>
			</li>
			<li class="item-content class-code" >
				<a href="#" class ="open-popup" data-popup=".popup-class-code"></a>
				<div class="item-media">
					<svg class="icon" aria-hidden="true">
						<use xlink:href="#icon-banji"></use>
					</svg>
				</div>
				<div class="item-inner ">
					<div class="item-title label">班级</div>
					<div class=" align-right user-info-content">
						{{#if user.class}}
								{{user.class}}
						{{else}}
								请选择班级
						{{/if}}
					</div>
				</div>
			</li>
		</ul>
		{{#if hasNoUserInfo user}}
		<div class = "user-info-mark {{markShow}}">
			<div class = "extend-info">
				<textarea style="font-size:12px;padding:12px;" id = "user_mark_info" placeholder = "如果不是学生用户或者没有找到对于学校院系可以在这里填写备注提交" class = "messages mark-info"></textarea>
			</div>
			<div class = "submit-btn" >
				<p><a href="#" class="button button-round active" >提 交</a></p>
			</div>
		</div>
		{{/if}}
	</div>

</template>
